import { axios } from '@/utils/request'

/**
 * 查询分页列表
 *
 * @author yubaoshan
 * @date 2020/5/25 01:31
 */
export function photlineList (parameter) {
  return axios({
    url: '/PHotline/Page',
    method: 'post',
    data: parameter
  })
}

/**
 * 回复
 */
export function photlineReply (parameter) {
    return axios({
      url: '/PHotline/Reply',
      method: 'post',
      data: parameter
    })
  }

  /**
 * 详情
 */
export function getPHotline (id) {
  return axios({
    url: `/PHotline/Get?Id=${id}`,
    method: 'get',
  })
}

/**
 * 删除回复
 */
export function deleteReply (parameter) {
  return axios({
    url: '/PHotline/DeleteReply',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除建议
 */
export function deletePHotline (parameter) {
  return axios({
    url: '/api/PHotline/Delete',
    method: 'post',
    data: parameter
  })
}